package com.ruoyi.erp.goodpath.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @version 2017.1.1
 * @Auther Du Ruifang @萌えキュンキュン
 * @Date 2020/12/21 09:27
 * @description 该类的作用
 */
@TableName("delivery_route_tab")
public class DeliveryRouteTab implements Serializable {
    @Excel(name = "工艺路线标识")
    @TableId(value="route_id")
    private String routeId;
    @Excel(name = "描述")
    @TableField(value="description")
    private String description;
    @Excel(name = "转运公司标识号")
    @TableField(value="forward_agent_id")
    private String forwardAgentId;
    @Excel(name = "在航层检查",readConverterExp="FALSE=否,TRUE=是")
    @TableField(value="check_on_line_level")
    private String checkOnLineLevel;
    @Excel(name = "rowversion",width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value="rowversion")
    private Date rowversion;
    @Excel(name = "rowkey",width = 30)
    @TableField(value="rowkey")
    private String rowkey;

    @Override
    public String toString() {
        return "DeliveryRouteTab{" +
                "routeId='" + routeId + '\'' +
                ", description='" + description + '\'' +
                ", forwardAgentId='" + forwardAgentId + '\'' +
                ", checkOnLineLevel='" + checkOnLineLevel + '\'' +
                ", rowversion=" + rowversion +
                ", rowkey='" + rowkey + '\'' +
                '}';
    }

    public String getrouteId() {
        return routeId;
    }

    public void setrouteId(String routeId) {
        this.routeId = routeId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getForwardAgentId() {
        return forwardAgentId;
    }

    public void setForwardAgentId(String forwardAgentId) {
        this.forwardAgentId = forwardAgentId;
    }

    public String getCheckOnLineLevel() {
        return checkOnLineLevel;
    }

    public void setCheckOnLineLevel(String checkOnLineLevel) {
        this.checkOnLineLevel = checkOnLineLevel;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getRowversion() {
        return rowversion;
    }

    public void setRowversion(Date rowversion) {
        this.rowversion = rowversion;
    }

    public String getRowkey() {
        return rowkey;
    }

    public void setRowkey(String rowkey) {
        this.rowkey = rowkey;
    }

    public DeliveryRouteTab() {

    }

    public DeliveryRouteTab(String routeId, String description, String forwardAgentId, String checkOnLineLevel, Date rowversion, String rowkey) {

        this.routeId = routeId;
        this.description = description;
        this.forwardAgentId = forwardAgentId;
        this.checkOnLineLevel = checkOnLineLevel;
        this.rowversion = rowversion;
        this.rowkey = rowkey;
    }
}